<?php


namespace app\common\utils;


use catcher\facade\Http;
use think\Log;

class Sms
{
    public static function sendSms(array $telArr, string $content)
    {
        try {
            $response = Http::form([
                'telephone' => $telArr,
                'content' => $content
            ])->post(config("sms.request_url"));
            return $response["data"];
        } catch (\Exception $exception) {

            \think\facade\Log::error("短信发送失败,失败原因:" . $exception->getMessage());
            return [];
        }

    }
}